/**
 * 用来简单处理一下token的本地化存储
 */

//用来存储token
export const set_token = (y: string) => {
  localStorage.setItem("token", y);
};

//用来获取token
export const get_token = (): string => {
  return localStorage.getItem("token") as string;
};

//删除
export const remove_token = (): void => {
  localStorage.removeItem("token");
};
